package cn.tinlan.shopcoin.app.gooddetail.adapter;

import android.content.Context;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

import cn.tinlan.shopcoin.R;
import cn.tinlan.shopcoin.app.gooddetail.model.GoodDetailModel;


/**
 * Created by Mortimer on 2018/11/26. 10:29
 * 佛祖🙏，永无bug。
 */
public class GoodDetailListAdapter extends BaseQuickAdapter<String,BaseViewHolder>{

    private Context context;
    public GoodDetailListAdapter(Context context, int layoutResId,  List<String> data) {
        super(layoutResId, data);
        this.context = context;
    }

    @Override
    protected void convert(BaseViewHolder helper, String item) {


        Log.d("gooddetailimgs--->>",item);
        ImageView ivLogo = helper.getView(R.id.good_item_img);
        Glide.with(context).load(item).into(ivLogo);
    }

//    @Override
//    public void onBindViewHolder(@NonNull RecyclerView.ViewHolder viewHolder, int i) {
//
//    }
}
